<?php /* Smarty version 2.6.26, created on 2014-02-20 18:05:55
         compiled from default/public/member_order_details.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="view/default/style/basic.css" />
<link type="text/css" rel="stylesheet" href="view/default/style/member.css" />
<script type="text/javascript" src="view/default/js/ajax.js"></script>
<script type="text/javascript" src="view/default/js/member.js"></script>
<title>在线商城会员中心</title>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/public/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="sait">
    当前位置：<a href="./">首页</a> &gt; 订单详情
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/public/member_sidebar.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="main">
    <h2>订单详情</h2>
     <table cellspacing="1">
         <caption>订单状态</caption>
         <tr><th>订单号</th><th>订单状态</th><th>支付状态</th><th>配送状态</th></tr>
         <tr><td><?php echo $this->_tpl_vars['oneOrder'][0]->ordernum; ?>
</td><td><?php echo $this->_tpl_vars['oneOrder'][0]->order_state; ?>
</td><td><?php echo $this->_tpl_vars['oneOrder'][0]->order_pay; ?>
</td><td><?php echo $this->_tpl_vars['oneOrder'][0]->order_delivery; ?>
</td></tr>
     </table>
     
     <table cellspacing="1">
         <caption>商品状态</caption>
         <tr><th>编号</th><th>名称</th><th>属性</th><th>售价</th><th>数量</th><th>小计</th><th>评价</th></tr>
         <?php $_from = $this->_tpl_vars['oneOrder'][0]->goods; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
         <tr><td><?php echo $this->_tpl_vars['value']['sn']; ?>
</td><td><a href="?a=details&navid=<?php echo $this->_tpl_vars['value']['nav']; ?>
&goodsid=<?php echo $this->_tpl_vars['value']['id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['value']['name']; ?>
</a></td><td>
            <?php $_from = $this->_tpl_vars['value']['attr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
                <?php echo $this->_tpl_vars['k']; ?>
:
                <?php $_from = $this->_tpl_vars['v']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k2'] => $this->_tpl_vars['v2']):
?>
                <?php echo $this->_tpl_vars['v2']; ?>
;
                <?php endforeach; endif; unset($_from); ?> 
            <?php endforeach; endif; unset($_from); ?>
        </td><td><?php echo $this->_tpl_vars['value']['price_sale']; ?>
</td><td><?php echo $this->_tpl_vars['value']['num']; ?>
</td><td style="color:red;"><?php echo $this->_tpl_vars['value']['total_small']; ?>
元</td><td><?php if ($this->_tpl_vars['oneOrder'][0]->order_delivery == '已发货'): ?><a href="?a=member&m=commend&goodsid=<?php echo $this->_tpl_vars['value']['id']; ?>
&orderid=<?php echo $this->_tpl_vars['oneOrder'][0]->id; ?>
">参与评论</a><?php else: ?> --- <?php endif; ?></td></tr>
        <?php endforeach; endif; unset($_from); ?>
     </table>
     
     <table cellspacing="1">
         <caption>配送信息</caption>
         <tr><th>配送状态</th><th>物流方式</th><th>运单号</th></tr>
         <tr><td><?php echo $this->_tpl_vars['oneOrder'][0]->order_delivery; ?>
</td><td><?php if ($this->_tpl_vars['oneOrder'][0]->order_delivery == '已发货'): ?><a href="<?php echo $this->_tpl_vars['oneOrder'][0]->delivery_url; ?>
" target="_blank"><?php echo $this->_tpl_vars['oneOrder'][0]->delivery_name; ?>
</a><?php endif; ?></td><td><?php echo $this->_tpl_vars['oneOrder'][0]->delivery_number; ?>
</td></tr>
     </table>
     
     <table cellspacing="1">
         <caption>支付信息</caption>
         <tr><th>支付状态</th><th>支付方式</th><th>支付金额</th></tr>
         <tr><td><?php echo $this->_tpl_vars['oneOrder'][0]->order_pay; ?>
</td><td><?php echo $this->_tpl_vars['oneOrder'][0]->pay; ?>
</td><td><?php echo $this->_tpl_vars['oneOrder'][0]->price; ?>
</td></tr>
     </table>
     
     <table cellspacing="1">
         <caption>备注信息</caption>
         <tr><th>备注信息</th><th>缺货处理</th></tr>
         <tr><td><?php echo $this->_tpl_vars['oneOrder'][0]->text; ?>
</td><td><?php echo $this->_tpl_vars['oneOrder'][0]->ps; ?>
</td></tr>
     </table>
     <?php if ($this->_tpl_vars['oneOrder'][0]->order_pay == '已付款' || $this->_tpl_vars['oneOrder'][0]->order_delivery == '已配货' || $this->_tpl_vars['oneOrder'][0]->order_delivery == '已发货' || $this->_tpl_vars['oneOrder'][0]->order_state == '已取消'): ?> 
         <?php if ($this->_tpl_vars['oneOrder'][0]->refund == 1): ?>
            <p style="color:red;text-align:center;margin:5px">此订单正在退款!</p>
         <?php else: ?>
            <?php if ($this->_tpl_vars['oneOrder'][0]->refund == 2): ?>
                <p style="color:red;text-align:center;margin:5px">此订单处于成功退款状态，可以选择<a href="?a=member&m=reOrder&id=<?php echo $this->_tpl_vars['oneOrder'][0]->id; ?>
">重新下单</a></p>
            <?php else: ?>
                <p style="color:red;text-align:center;margin:5px">此订单已经被锁定，不能付款!</p>
            <?php endif; ?>
         <?php endif; ?>
     <?php else: ?>   
     <p style="text-align:center;margin:5px;"><a href="?a=member&m=alipay&id=<?php echo $this->_tpl_vars['oneOrder'][0]->id; ?>
"><img src="view/default/images/fu.gif" /></a></p>
     <?php endif; ?>
     <p style="text-align:center;"><a href="<?php echo $this->_tpl_vars['prev']; ?>
">[返回]</a></p>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'default/public/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>